package com.wjh;

import com.wjh.config.ScanConfiguration;
import com.wjh.controller.UserController;
import com.wjh.ioc.RAnnotationConfigurationApplicationContext;

public class App {
    public static void main(String[] args) {
        RAnnotationConfigurationApplicationContext applicationContext
                = new RAnnotationConfigurationApplicationContext(ScanConfiguration.class);
       UserController userController = (UserController) applicationContext.getBean(UserController.class);
       userController.userController22();
//        for(Class s:applicationContext.getBeanDefinitionNames()){
//            System.out.println(s.getSimpleName());
//        }
    }
}
